package com.ukao.pad.bean;

/**
 * Created by ukaodev on 2017/7/28.
 */

public class StationBean extends BaseListBean<StationBean> {





    private   boolean isCheck;

    public boolean isCheck() {
        if (  getDef()==1){
            setCheck(true);
        }else{
            setCheck(false);
        }

        return isCheck;
    }

    public void setCheck(boolean check) {
        if (check){
            setDef(1);
        }else{
            setDef(0);
        }
        isCheck = check;
    }



        /**
         * val : 1
         * def : 0
         * name : 熨烫
         * id : 132
         */

        private int val;
        private int def;
        private String name;
        private int id;


    public   StationBean   (String  name,boolean  isCheck ){
        this.name=name;
        this.isCheck=isCheck;
    }

        public int getVal() {
            return val;
        }

        public void setVal(int val) {
            this.val = val;
        }

        public int getDef() {


            return def;
        }

        public void setDef(int def) {


            this.def = def;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

}
